package com.wzd.shoppingService.model.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 商品banner图
 *
 * @author WeiZiDong
 */
@Table(name = "`goods_banner`")
@Data
@ApiModel("商品banner图")
public class GoodsBanner implements Serializable {
    @Id
    @Column(name = "`id`")
    @ApiModelProperty(value = "记录id", example = "1")
    private Long id;
    @Column(name = "`create_by`")
    @ApiModelProperty(value = "创建人", example = "String")
    private String createBy;
    @Column(name = "`create_time`")
    @ApiModelProperty(value = "创建时间", example = "2019-05-05 17:55:31")
    private Date createTime;
    @Column(name = "`update_by`")
    @ApiModelProperty(value = "更新人", example = "String")
    private String updateBy;
    @Column(name = "`update_time`")
    @ApiModelProperty(value = "更新时间", example = "1556946359031")
    private Date updateTime;
    @Column(name = "`delete_flag`")
    @ApiModelProperty(value = "1:删除，0：未删除", example = "1")
    private Integer deleteFlag;
    @Column(name = "`status_flag`")
    @ApiModelProperty(value = "1:启用，0：禁用", example = "1")
    private Integer statusFlag;
    @Column(name = "`banner_name`")
    @ApiModelProperty(value = "广告名称", example = "String")
    private String bannerName;
    @Column(name = "`banner_position`")
    @ApiModelProperty(value = "广告位置", example = "1")
    private Integer bannerPosition;
    @Column(name = "`image_url`")
    @ApiModelProperty(value = "广告图片", example = "String")
    private String imageUrl;
    @Column(name = "`link_url`")
    @ApiModelProperty(value = "广告链接", example = "String")
    private String linkUrl;
    @Column(name = "`start_time`")
    @ApiModelProperty(value = "广告投放开始时间", example = "2019-05-05 17:55:31")
    private Date startTime;
    @Column(name = "`end_time`")
    @ApiModelProperty(value = "广告投放结束时间", example = "2019-05-05 17:55:31")
    private Date endTime;
    @Column(name = "`category_id`")
    @ApiModelProperty(value = "所属分类ID", example = "1")
    private Long categoryId;
    @Column(name = "`remark`")
    @ApiModelProperty(value = "备注", example = "String")
    private String remark;

    private static final long serialVersionUID = 1L;
}
